import request from '@/utils/request'

// 获取所有挂号对应的列表
export function fetchList(params) {
  return request({
    url: '/payclinic/paylist',
    method: 'post',
    data: params
  })
}

// 获取病历
export function getBingli(params) {
  return request({
    url: '/payclinic/get_medical_record',
    method: 'post',
    data: params
  })
}

// 获取检查单
export function getJiancha(params) {
  return request({
    url: '/payclinic/get_apply',
    method: 'post',
    data: params
  })
}

// 检查单缴费
export function payJiancha(params) {
  return request({
    url: '/payclinic/pay_apply',
    method: 'post',
    data: params
  })
}

// 获取处方单
export function getChufang(params) {
  return request({
    url: '/payclinic/get_medicaluse',
    method: 'post',
    data: params
  })
}

// 处方单缴费
export function payChufang(params) {
  return request({
    url: '/payclinic/pay_medicine',
    method: 'post',
    data: params
  })
}

// 根据检验id进行单项退费
export function refundJiancha(params) {
  return request({
    url: '/payclinic/refund_apply',
    method: 'post',
    data: params
  })
}

// 处方单退费
export function refundChufang(params) {
  return request({
    url: '/payclinic/refund_medicine',
    method: 'post',
    data: params
  })
}
